package com.lyz.util;

import java.util.Random;

public class RandomUtil {
	
	private static Random random = new Random(1);
	
	
	public static int getRandomNum(int maxNum){
		
		return random.nextInt(maxNum-1)+1;
	}
	
	
	
	public static void main(String args[]){
		System.out.println(RandomUtil.getRandomNum(10000000));
		System.out.println(RandomUtil.getRandomNum(10000000));
		System.out.println(RandomUtil.getRandomNum(10000000));
		System.out.println(RandomUtil.getRandomNum(10000000));
		System.out.println(RandomUtil.getRandomNum(10000000));
		System.out.println(RandomUtil.getRandomNum(10000000));
	}
}
